<?php

namespace app\api\logic;

use app\common\model\Banner;

class BannerLogic
{
    protected Banner $model;

    public function __construct()
    {
        $this->model = new Banner();
    }

    public function getList()
    {
        return $this->model
            ->field('id,title,image,sort')
            ->where('deletetime',$this->model::DELETE_TIME)
            ->order('sort ASC')
            ->select();
    }

}